package com.avalonsql.core.db.connection;

import java.sql.Connection;

public class ConnectionWrapper {

    protected Connection connection;
    protected ConnectionProperties connectionProperties;

    public ConnectionWrapper(ConnectionProperties connectionProperties, Connection connection) {
        if (connectionProperties == null) {
            throw new IllegalArgumentException("connectionProperties = null");
        }
        if (connection == null) {
            throw new IllegalArgumentException("connection = null");
        }

        this.connectionProperties = connectionProperties;
        this.connection = connection;
    }

    public Connection getConnection() {
        return connection;
    }

    public ConnectionProperties getConnectionProperties() {
        return connectionProperties;
    }

}
